package com.rs.service;


import com.rs.data.model.PadPushData;

public interface IPadExchangeHelpService {

    /**
     * 添加数据到队列
     */
    void addData(PadPushData model);

    /**
     * 保存推送的附件
     *
     * @param transId
     * @param fileType
     * @param fileName
     * @param file
     * @param fragId
     * @param ext1
     */
    void doSaveLdtpFileSend(String transId, String fileType, String fileName,
                            String file, int fragId, String ext1);

    void doSaveLdtpFileSend(String transId, String fileType, String fileName,
                            byte[] bs, int fragId, String ext1);

    /**
     * 解析推送数据
     *
     * @param transId
     */
    void doParseLdtpFormSend(String transId) throws Exception;

    /**
     * 密级
     */
    enum SecLevel {
        LEVEL_TWO("SEC02", "JM"), LEVEL_THREE("SEC03", "MM"), LEVEL_FOUR("SEC04", "内部"), LEVEL_FIVE("SEC05", "非M");
        private String code;
        private String name;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        private SecLevel(String code, String name) {
            this.code = code;
            this.name = name;
        }
    }

    /**
     * 优先级
     */
    enum Priority {
        PRI_01("PRI01", "高"), PRI_02("PRI02", "中"), PRI_03("PRI03", "低");
        private String code;
        private String name;

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        private Priority(String code, String name) {
            this.code = code;
            this.name = name;
        }
    }

    String separator = "/";

    String version = "V1.0.0";

    /**
     * 一块分片是多大！20M
     */
    int BLOCK_FILE_SIZE = 20 * 1024 * 1024;
}
